var expanded = null;
var collapsed = null;
var expandTimeout = null;
var collapseTimeout = null;
function expand()
{
	expanded.show(200);
}
function collapse()
{
	collapsed.hide(200);
	collapsed = null;
}

jQuery.fn.thumbImg = function(img)
{
	return this.each(
		function()
		{
			jQuery(this).mouseover(function(){
					if(expanded !=  jQuery($(".thumb-strip", this)))
					{
						clearTimeout(expandTimeout);
						expanded = jQuery($(".thumb-strip", this));
						expandTimeout = setTimeout(expand, 400);
					}
				}).append(
					$("<DIV />").hide().
						addClass("thumb-strip")
						.append(
								$("<IMG />").attr("src",img).addClass("thumb-strip-img").mouseout(function(){
										if(collapsed)
											collapsed.hide(200);
										collapseTimeout = setTimeout(collapse, 200);
										collapsed = expanded;
										clearTimeout(expandTimeout);
									})
						)
				)
		}
	)
}



